﻿@using WanFang.Test
@model Person
@{ 
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>H+ 后台主题UI框架 - 主页</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="@Url.Content("~/Content/Hplus-v.4.1.0/css/bootstrap.min.css?v=3.3.6")" rel="stylesheet">
    <link href="@Url.Content("~/Content/Hplus-v.4.1.0/css/font-awesome.min.css?v=4.4.0")" rel="stylesheet">
    <link href="@Url.Content("~/Content/Hplus-v.4.1.0/css/animate.css")" rel="stylesheet">
    <link href="@Url.Content("~/Content/Hplus-v.4.1.0/css/style.css?v=4.1.0")" rel="stylesheet">
    <!-- 全局js -->
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/jquery.min.js?v=2.1.4")"></script>
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/bootstrap.min.js?v=3.3.6")"></script>
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/plugins/metisMenu/jquery.metisMenu.js")"></script>
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/plugins/slimscroll/jquery.slimscroll.min.js")"></script>
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/plugins/layer/layer.min.js")"></script>
    <!-- 自定义js -->
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/hplus.js?v=4.1.0")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/Hplus-v.4.1.0/js/contabs.js")"></script>
    <!-- 第三方插件 -->
    <script src="@Url.Content("~/Content/Hplus-v.4.1.0/js/plugins/pace/pace.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.form.js")"></script>
    <script>
        $(document).ready(function () {
            $("form").submit(function () {
                //name
                if ($("#Name").val() == "") {
                    alert("请输入Name");
                    return;
                }
                $(this).ajaxSubmit({
                    type: 'post',
                    url: '/Test/Update/@Model.Id',
                    dataType: 'json',
                    success: function (data) {
                        if (data.result.errcode == 0) {
                            alert("修改成功");
                        } else {
                            alert("修改失败");
                        }
                    }
                })
            });
        })
    </script>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <form>
        <div>
            <p>Id:@Html.LabelFor(t => t.Id),Name:@Html.TextBoxFor(t => t.Name)</p>
        </div>
        <button type="submit" id="submit">保存</button>
        @Html.AntiForgeryToken()
    </form>
</body>
</html>
